(korean-key-bindings): Add binding for key Hangul.
authorKenichi Handa <handa@m17n.org>
Thu, 18 Jun 2009 01:02:02 +0000 (01:02 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 18 Jun 2009 01:02:02 +0000 (01:02 +0000)
lisp/language/korea-util.el

index e3426604f258120100e4452755f31577b7c4ac1c..56abda353367138d1c526b68e7bb9cb934c56a0d 100644 (file)
 ;; Information for setting and exiting Korean environment.
 (defvar korean-key-bindings
   `((global [?\S- ] toggle-korean-input-method nil)
+    (global [Hangul] toggle-korean-input-method nil)
     (global [C-f9] quail-hangul-switch-symbol-ksc nil)
     (global [f9]  quail-hangul-switch-hanja nil)
     (,isearch-mode-map [?\S- ] isearch-toggle-korean-input-method nil)
+    (,isearch-mode-map [Hangul] isearch-toggle-korean-input-method nil)
     (,isearch-mode-map [C-f9] isearch-hangul-switch-symbol-ksc nil)
     (,isearch-mode-map [f9] isearch-hangul-switch-hanja nil)))
 
          (setq old-def (lookup-key (car this) key))
          (define-key (car this) key new-def))
        (setcar (nthcdr 3 this) old-def))
-      (setq key-bindings (cdr key-bindings)))))
+      (setq key-bindings (cdr key-bindings))))
+  (use-cjk-char-width-table 'ko_KR))
+
 
 (defun exit-korean-environment ()
   "Exit Korean language environment."
                (global-set-key key old-def))
          (if (eq (lookup-key (car this) key) new-def)
              (define-key (car this) key old-def))))
-      (setq key-bindings (cdr key-bindings)))))
+      (setq key-bindings (cdr key-bindings))))
+  (use-default-char-width-table))
 
 ;;
 (provide 'korea-util)